package com.peas.platform.module.icims.base.mdm.domain.impl;

import com.peas.platform.framework.mybatisplus.domain.BaseDomainImpl;
import com.peas.platform.framework.mybatisplus.repository.BaseRepository;
import com.peas.platform.module.icims.base.mdm.adapter.repository.CompanyRepository;
import com.peas.platform.module.icims.base.mdm.adapter.repository.po.CompanyPo;
import com.peas.platform.module.icims.base.mdm.domain.CompanyDomain;
import com.peas.platform.module.icims.base.mdm.dto.CompanyDto;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class CompanyDomainImpl extends BaseDomainImpl<CompanyDto, CompanyPo> implements CompanyDomain {

    @Resource
    private CompanyRepository companyRepository;

    @Override
    public BaseRepository<CompanyPo> getMapper() {
        return companyRepository;
    }

    @Override
    public Class<? extends BaseRepository<CompanyPo>> getRepositoryClass() {
        return CompanyRepository.class;
    }

}
